<%= javascript_include_tag "bbcode/editor","bbcode/forum_fn","bbcode/send_post" %>


<%= render :partial => "share/color_selection" %>
<div id="format-buttons">
  <input class="button2" accesskey="b" name="addbbcode0" value=" B " style="font-weight: bold; width: 20px;" onclick="bbstyle(0)" title="加粗: [b]加粗字体[/b]" type="button"/>
  <input class="button2" accesskey="i" name="addbbcode2" value=" i " style="font-style: italic; width: 20px;" onclick="bbstyle(2)" title="斜体: [i]斜体[/i]" type="button"/>
  <input class="button2" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 20px;" onclick="bbstyle(4)" title="Underline text: [u]text[/u]" type="button"/>
  <input class="button2" accesskey="q" name="addbbcode6" value="引用" style="width: 40px;" onclick="bbstyle(6)" title="引用文本: [quote]引用文本[/quote]" type="button"/>
  <input class="button2" accesskey="l" name="addbbcode10" value="List" style="width: 30px;" onclick="bbstyle(10)" title="列表: [list]列表[/list]" type="button"/>
  <input class="button2" accesskey="o" name="addbbcode12" value="List=" style="width: 30px;" onclick="bbstyle(12)" title="顺序列表: [list=]顺序列表内容[/list]" type="button"/>
  <input class="button2" accesskey="t" name="addlitsitem" value="[*]" style="width: 30px;" onclick="bbstyle(-1)" title="列表项: [*]内容[/*]" type="button"/>
  <input class="button2" accesskey="p" name="addbbcode14" value="图片" style="width: 30px;" onclick="bbstyle(14)" title="图片: [img]图片地址[/img]" type="button"/>
  <input class="button2" accesskey="w" name="addbbcode16" value="链接" style="text-decoration: underline; width: 30px;" onclick="bbstyle(16)" title="链接: [url]链接地址[/url]  或者[url=http://url]去除http后的地址[/url]" type="button"/>
  <input class="button2" accesskey="u" name="addbbcode22" value="优酷" onclick="bbstyle(22)" title="Flash: [youku]地址[/youku]" type="button"/>
  <input class="button2" accesskey="u" name="addbbcode22" value="酷6" onclick="bbstyle(26)" title="Flash: [ku6]地址[/ku6]" type="button"/>
  <input class="button2" accesskey="u" name="addbbcode22" value="空格" onclick="bbstyle(28)" title="Flash: [space][/space]" type="button"/>

  <select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="字体大小: [size=85]small text[/size]">
    <option value="50">微小[50]</option>
    <option value="85">小[80]</option>
    <option value="100" selected="selected">正常</option>
    <option value="150">大</option>
    <option value="200">巨大</option>
  </select>
  <input class="button2" name="bbpalette" id="bbpalette" value="颜色" onclick="change_palette();" title="字体颜色: [color=red]字体[/color]" type="button"/>

</div>

<div id="message-box" style="width:100%">
    <textarea validate="required:true" title="内容" name="message" id="message" rows="15" cols="76" tabindex="4" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" class="inputbox"><%= post.content %></textarea>
</div>
